package com.guigui.gulimall.order.feign;

import com.guigui.gulimall.order.to.SkuInfo;
import com.guigui.gulimall.order.to.SpuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("gulimall-product")
public interface ProductFeignService {
    @GetMapping("/product/skuinfo/id/{skuId}")
    SkuInfo getSkuInfoBySkuId(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/spuinfo/spuInfo/{skuId}")
    SpuInfo getSpuInfoBySkuId(@PathVariable("skuId") Long skuId);
}
